home *** CD-ROM | disk | FTP | other *** search
/ Your Choice 1 / your choice.zip / your choice / OS2 / AM4PM / PLAY.AMC < prev    next >
Text File  |  1993-06-13  |  1KB  |  20 lines

  1. /*********************************************************************/
  2. /* PLAY.AMC - Play a message to the speaker                          */
  3. /*                                                                   *//* This program is called by AM4PM.EXE when the user wants to play   */
  4. /* a message selected from the listbox.                              */
  5. /*                                                                   */
  6. /* Input:  The name of the file to play                              */
  7. /*                                                                   *//* Output: 0  Normal. Only AT+VLS=0 is done before waiting           */
  8. /*         1  Full init. Reinit COM-port and everything.             */
  9. /*         2  Terminate AM4PM.                                       */
  10. /*                                                                   *//*********************************************************************/
  11. CALL AMDPrint 'PLAY.AMC('arg(1)') started'
  12. CALL AMSetLastEventText 'Play'
  13. CALL AMSetStateText 'Playing message'
  14.  
  15. AMSendW('AT+VLS=16')
  16.  
  17. DLECode=AMPlayFile(arg(1))
  18.  
  19. Exit 0
  20.